package cn.yeamin.ms.vo;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import cn.yeamin.ms.vo.support.BaseVO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @packageName: 包名: cn.yeamin.ms.vo
 * @classDesc: 类功能描述:()
 * @author: Administrator
 * @createTime: 2017/7/28 10:08
 * @version: v1.0
 * @copyright:奕明(上海)影视传媒有限公司
 */
@Entity
@Table(name = "tb_role")
@Data
@EqualsAndHashCode(callSuper=false)
public class Role extends BaseVO implements Serializable{

	    
	private static final long serialVersionUID = 1052438202186279668L;

	/**
     * 角色id
     */
    @Id
    private Long id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色key
     */
    private String roleKey;


    /**
     * 权限
     */
    @Transient
    private Set<Resource> resources;




}
